package com.eystar.pdc.model;

import com.eystar.ext.kit.page.PageOrder;
import com.eystar.ext.plugin.tablebind.ModelExt;
import com.eystar.ext.plugin.tablebind.TableBind;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.SqlPara;

/**
 * 日志表的Model
 * @author Zhangjian
 *
 */
@TableBind(tableName = "t_pdc_log")
public class Log extends ModelExt<Log> {
	
	private static final long serialVersionUID = 1244431359124317083L;
	public final static Log dao = new Log();
	
	/**
	 * 分页查找对象
	 *
	 * @param order
	 * @param user
	 * @return
	 */
	public Page<Log> paginate(PageOrder order, Log log) {
		SqlPara sqlPara = getSqlPara("pdc.log.paginate",log);
		return paginate(order.getPageNum(), order.getPageSize(), sqlPara);
	}
}
